package cn.yx.common.core.mapping;

import java.util.List;

/**
 * <p>mapstruct基础映射接口，Cond与Cond的映射</p>
 *
 * @param <Cond>  DTO类
 * @param <Other> 另一个DTO类
 * @author Wgssmart
 */
public interface CondMapping<Cond, Other> {

    /**
     * Cond转Cond
     *
     * @param cond
     * @return
     */
    Other condToOther(Cond cond);

    /**
     * Cond集合转Cond集合
     *
     * @param condList
     * @return
     */
    List<Other> condToOther(List<Cond> condList);

    /**
     * Cond转Cond
     *
     * @param cond
     * @return
     */
    Cond otherToCond(Other cond);

    /**
     * Cond集合转Cond集合
     *
     * @param condList
     * @return
     */
    List<Cond> otherToCond(List<Other> condList);

}
